package com.itheima.Service.Impl;

import com.itheima.Service.UserService;
import com.itheima.mapper.UserMapper;
import com.itheima.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    /**
     * 根据用户名查询
     * @param username
     * @return
     */
    @Override
    public User userByName(String username) {
        return userMapper.userByName(username);
    }
}
